<template>
  <div>
    <div>{{str}}</div>
    <button @click="doClick">逆转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      str:'Hello,World'
    }
  },
  methods: {
    doClick(){

      this.str=this.str.split('').reverse().join('')
    }
  },
}
</script>